package com.tuo51.childcare.repository.photoAlbum;

import com.tuo51.childcare.domain.photoalbum.PhotoAlbumTemplatePage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface PhotoAlbumTemplatePageRepository extends JpaRepository<PhotoAlbumTemplatePage, String>, JpaSpecificationExecutor<PhotoAlbumTemplatePage> {

       List<PhotoAlbumTemplatePage> findAllByTemplateIdOrderByCapacityDesc(String templateId);

}
